package top.jiachunlei.builder;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/6 20:39
 */
public class Product
{
    List<String> list = new ArrayList<>();

    public void add(String part)
    {
        list.add(part);
    }

    public void show()
    {
        for (String part : list)
        {
            System.out.println("part:" + part);
        }
    }
}
